// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'

// vuex
// import store from '@/store/index'

// polyfill
import 'babel-polyfill'

import App from './App'

// mixin
import Mixins from '@/utils/mixins.js';
Vue.mixin(Mixins);

// 接口库
import '@/utils/api.config.js'

// 异步请求库
import '@/utils/axios.js'

// 全局注册的组件
import '@/components'

// 本地缓存
import '@/utils/storage.js'

//移动端适配插件
import 'lib-flexible/flexible'

//按需引入vant
import { Field,Button,Cell,CellGroup,Icon,Actionsheet,Picker,Popup,Dialog,Collapse, CollapseItem,Checkbox,CheckboxGroup,RadioGroup, Radio,TreeSelect  } from 'vant'
Vue.use(Field).use(Button).use(Cell).use(CellGroup).use(Icon).use(Actionsheet).use(Picker).use(Popup).use(Dialog)
.use(Collapse).use(CollapseItem).use(Checkbox).use(CheckboxGroup).use(RadioGroup).use(Radio).use(TreeSelect)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
